﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JBeamLibrary.VehicleParts.Enums;

namespace JBeamLibrary.VehicleParts.Elements
{
    public class CollisionValues
    {
        #region Properties

        public float SelfCollisionThickness { get; set; }

        public float RemoteCollisionThickness { get; set; }

        public DefaultBoolean ZeroOutSelfCollision { get; set; }

        #endregion

        #region CTORs

        public CollisionValues()
        {
            SelfCollisionThickness = float.MinValue;
            RemoteCollisionThickness = float.MinValue;
            ZeroOutSelfCollision = DefaultBoolean.Undetermined;
        }

        public CollisionValues(float selfCollThick, float rmtCollThick, DefaultBoolean zeroOutSelfColl)
        {
            SelfCollisionThickness = selfCollThick;
            RemoteCollisionThickness = rmtCollThick;
            ZeroOutSelfCollision = zeroOutSelfColl;
        }

        #endregion

        #region Overrides

        public override string ToString()
        {
            return string.Format(
                "SCT: {0} ; RCT: {1} ; ZOSC: {2}",
                SelfCollisionThickness,
                RemoteCollisionThickness,
                ZeroOutSelfCollision
            );
        }

        #endregion
    }
}
